package com.test.interceptors;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/9/14 9:58
 */
public class MyInterceptor extends AbstractInterceptor {
    private static final long serialVersionUID = 6665352431818078501L;

    @Override
    public String intercept(ActionInvocation invocation) throws Exception {
        System.out.println("before invocation.invoke...");
        String result = invocation.invoke();
        System.out.println("after invocation.invoke...");
        return result;
    }
}
